package com.jk.admin.service;

import com.jk.admin.dao.PopDao;
import com.jk.admin.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Chao Wenguang 536567058@qq.com
 * @Description //TODO 
 * @Date 15:55 2021/4/1
 * @Param 
 * @return 
 **/
@Service
public class PopService {
    @Autowired
    private PopDao popDao;


    public List<Product> getListPop(Product product) {
        return popDao.getListPop(product);
    }

    public List<Product> getListNonPop(Product product) {
        return popDao.getListNonPop(product);
    }

    public void PopById(Integer id) {
         popDao.PopById(id);
    }

    public void delPop(Integer id) {
        popDao.delPop(id);
    }

}



